package activity.personal.qianbao;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.itboye.hutoubenjg.R;

import base.BaseActivity;
import base.MyApplcation;
import util.utls.ByAlert;
import util.utls.IsUtilUid;


/**
 * 支付密码
 *
 */
public class ZhiFuPassActivity extends BaseActivity {
    TextView tvTitle;
    ImageView back;

    RelativeLayout zhifu_shezhi, zhifu_chongzhi;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhi_fu_pass);
        tvTitle.setText("设置支付密码");
    }

    @Override
    protected void onInit() {

    }

    @Override
    protected void onReadIntent(Bundle bundle) {

    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.zhifu_shezhi:// 设置支付密码
                String pwdpay= IsUtilUid.isPay();
                if (pwdpay == null || pwdpay.equals("") ) {
                    intent = new Intent(MyApplcation.ctx, ZhiFuPassSheZhiActivity.class);
                    startActivity(intent);
                    finish();
                }else{
                    ByAlert.alert("支付密码已设置");
                }

                break;
            case R.id.zhifu_chongzhi:// 重置支付密码
                intent = new Intent(this, ZhiFuPassChongZhiActivity.class);
                startActivity(intent);
                break;

            default:
                break;
        }
    }
}
